package com.ybbase.framework.common.constant;


//import com.ybbase.framework.model.po.system.Param;

/**
 * 系统配置类常量
 *
 * @author baijingbin
 * @date 2019/8/26 5:04 下午
 * @since 4.0
 */
public class ConfigConstant {

    /**
     * token过期时间生成jwt token，设置过期时间为1小时
     */
    public static Integer TOKEN_EXPIRE_DATE = 3600;
    /**
     * 判断是否做刷新判断，-1是不做刷新判断
     */
    public static Integer TOKEN_REFRESH_INTERVAL = -1;
    /**
     * 数据权限过滤类
     * */
    public static String AUTH_DATA_PERMISSION_CLASS = "com.ybbase.framework.service.system.impl.AbstractDataAuthServiceImpl";
    /**
     * token salt
     */
    public static final String TOKEN_SALT = "Met Transportation and Marketing System Cloud2.0";
    /**
     * anyRolesAuthFilter
     */
    public static final String ANY_ROLES_AUTH_FILTER = "anyRolesAuthFilter.FILTERED";
    /**
     * CharacterEncoding 编码格式
     * */
    public static final String CHARACTER_ENCODING = "UTF-8";
    /**
     * ContentTypeJSON JSON传输类型
     * */
    public static final String CONTENT_TYPE_JSON = "application/json;charset=utf-8";
    /**
     * ContentTypeHTML HTML传输类型
     * */
    public static final String CONTENT_TYPE_HTML = "text/html;charset=UTF-8";
    /**
     * header token name
     * */
    public static final String HEADER_TOKEN_NAME="x_auth_token";
    /**
     * token banner name
     * */
    public static final String TOKEN_BANNER_NAME="Bearer ";
    /**
     * ENCRYPT_SALT 用户名密码加密
     * */
    public static final String ENCRYPT_SALT = "F12839WhsnnEV$#23b";
    /**
     * DB_REALM
     * */
    public static final String DB_REALM = "dbRealm";
    /**
     * JWT_REALM
     * */
    public static final String JWT_REALM = "jwtRealm";

}
